﻿using System;
using ebc.message.contract;
using ebc.worker.contract;

namespace ebc.worker {
    public class Worker : IWorker {

        public void ProcessWorkerRequest(WorkerRequest request) {
            string result = request.FromSource + "=>ProcessWorkerRequest <Input>" + Environment.NewLine;
            OnWorkerResult(new WorkerResult { FromTarget = result + "=>Worker <ResultOutput>" + Environment.NewLine });
        }

        public event Action<WorkerResult> OnWorkerResult;

    }
}
